package org.taobao.ibatiside.ui.pref;

import org.eclipse.jface.preference.PreferencePage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.layout.FillLayout;

public class MainDescriptionPage extends PreferencePage implements IWorkbenchPreferencePage {

	/**
	 * Create the preference page.
	 */
	public MainDescriptionPage() {
		setTitle("iBATIS IDE");
		noDefaultAndApplyButton();
	}

	/**
	 * Create contents of the preference page.
	 * @param parent
	 */
	@Override
	public Control createContents(Composite parent) {
		Composite container = new Composite(parent, SWT.NULL);
		container.setLayout(new FillLayout(SWT.HORIZONTAL));
		
		Label lblNewLabel = new Label(container, SWT.NONE);
		lblNewLabel.setText("Settings for iBATIS IDE");

		return container;
	}

	/**
	 * Initialize the preference page.
	 */
	public void init(IWorkbench workbench) {
		// Initialize the preference page
	}

}
